<template>
  <div>222</div>
</template>

<script setup>
import { ethers, BrowserProvider, formatEther } from 'ethers';

import { Wallet } from 'ethers';

// 创建助记词
const mnemonic = Wallet.createRandom().mnemonic;
console.log('Mnemonic:', mnemonic.phrase);

// 使用助记词创建钱包
const walletFromMnemonic = Wallet.fromPhrase(mnemonic.phrase);

console.log('Address:', walletFromMnemonic.address);
console.log('Private Key:', walletFromMnemonic.privateKey);
</script>

<style lang="scss" scoped></style>
